package com.greateffect.littlebud.lib.utils;

import android.support.annotation.NonNull;

import com.greateffect.littlebud.lib.utils.IFileUtils;

/**
 * Created by ZengCS on 2019/1/25.
 * function：文件目录
 */
public class FileCommonUtil extends IFileUtils {
    public static String rootpath = IFileUtils.getSDCardPath() + "/sxw/app/kt3/student/";
    public static String sqlitePath = rootpath+ "db/";
    public static String htmlPath = rootpath + "htmls/";
    public static String zipFileSavePath = rootpath+ "zipFilePath/";
    public static String cacheFileSavePath = rootpath + "cachefile/";
    public static String logPath = rootpath.concat("log/");//app日志路径
    public static String mmkvPath = rootpath.concat("mmkv/");//mmkv存储路径


    /**
     * 获取相对路径
     * @param absPath
     * @return
     */
    public static String getRelativePath(@NonNull String absPath){
        return absPath.replace(IFileUtils.getSDCardPath()+"/","");
    }
}
